package basic;

public class BreakKeywords2 {
    public static void main(String[] args) {
        for (int i = 1; i <= 5; i ++){
            // 打印i的值
            System.out.println(i);
            for (int j = 1; j <= 5; j ++){
                if (j == 3){
                    System.out.println("当j等于3时，终止循环！");
                    break;
                }
                //打印j的值
                System.out.println(j);
            }
        }
    }
}


